<!DOCTYPE html>
<html lang="zh-cn" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="renderer" content="webkit">
    <title></title>
    <link rel="stylesheet" href="css/pintuer.css">
    <link rel="stylesheet" href="css/admin.css">
    <script src="js/jquery.js"></script>
    <script src="js/pintuer.js"></script>
    <script src="/js/vuejs-2.5.16.js"></script>
    <script src="/js/axios-0.18.0.js"></script>
</head>
<body>
<div class="panel admin-panel" id="soul_question_addDiv">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>添加问题</strong></div>

    <form method="post" class="form-x" action="/question/save">
        <input type="hidden" name="id" v-model="questionnaireId">

        <div class="form-group">
            <div class="label">
                <label>问题：</label>
            </div>
            <div class="field">
                <input type="text" class="input w50" name="question" placeholder="请输入问题"
                       data-validate="required:请输入问题"/>
                <div class="tips"></div>
            </div>
        </div>
        <div class="form-group">
            <div class="label">
                <label>选项A：</label>
            </div>
            <div class="field">
                <input type="text" class="input w50" name="option" placeholder="请输入选项"
                       data-validate="required:请输入选项"/>
                <input type="text" class="input w50" name="score" placeholder="请输入分数"
                       data-validate="required:请输入分数(1-10)"/>
                <div class="field">
                <input type="text" class="input w50" name="extroversion" placeholder="请输入外向指数(1-10)"
                       data-validate="required:请输入外向指数"/>
                <input type="text" class="input w50" name="judgement" placeholder="请输入判断指数(1-10)"
                       data-validate="required:请输入判断指数"/>
                <input type="text" class="input w50" name="abstraction" placeholder="请输入抽象指数(1-10)"
                       data-validate="required:请输入抽象指数"/>
                <input type="text" class="input w50" name="rationality" placeholder="请输入理性指数(1-10)"
                       data-validate="required:请输入理性指数"/>
                </div>
                <div class="tips"></div>
            </div>
        </div>

        <div class="form-group">
            <div class="label">
                <label>选项B：</label>
            </div>
            <div class="field">
                <input type="text" class="input w50" name="option" placeholder="请输入选项"
                       data-validate="required:请输入选项"/>
                <input type="text" class="input w50" name="score" placeholder="请输入分数"
                       data-validate="required:请输入分数(1-10)"/>
                <div class="field">
                    <input type="text" class="input w50" name="extroversion" placeholder="请输入外向指数(1-10)"
                           data-validate="required:请输入外向指数"/>
                    <input type="text" class="input w50" name="judgement" placeholder="请输入判断指数(1-10)"
                           data-validate="required:请输入判断指数"/>
                    <input type="text" class="input w50" name="abstraction" placeholder="请输入抽象指数(1-10)"
                           data-validate="required:请输入抽象指数"/>
                    <input type="text" class="input w50" name="rationality" placeholder="请输入理性指数(1-10)"
                           data-validate="required:请输入理性指数"/>
                </div>
                <div class="tips"></div>
            </div>
        </div>


        <div class="form-group">
            <div class="label">
                <label>选项C：</label>
            </div>
            <div class="field">
                <input type="text" class="input w50" name="option" placeholder="请输入选项"
                       data-validate="required:请输入选项"/>
                <input type="text" class="input w50" name="score" placeholder="请输入分数"
                       data-validate="required:请输入分数(1-10)"/>
                <div class="field">
                <input type="text" class="input w50" name="extroversion" placeholder="请输入外向指数(1-10)"
                       data-validate="required:请输入外向指数"/>
                <input type="text" class="input w50" name="judgement" placeholder="请输入判断指数(1-10)"
                       data-validate="required:请输入判断指数"/>
                <input type="text" class="input w50" name="abstraction" placeholder="请输入抽象指数(1-10)"
                       data-validate="required:请输入抽象指数"/>
                <input type="text" class="input w50" name="rationality" placeholder="请输入理性指数(1-10)"
                       data-validate="required:请输入理性指数"/>
                </div>
                <div class="tips"></div>
            </div>
        </div>

        <div class="form-group">
            <div class="label">
                <label>选项D：</label>
            </div>
            <div class="field">
                <input type="text" class="input w50" name="option" placeholder="请输入选项"
                       data-validate="required:请输入选项"/>
                <input type="text" class="input w50" name="score" placeholder="请输入分数"
                       data-validate="required:请输入分数(1-10)"/>
                <div class="field">
                <input type="text" class="input w50" name="extroversion" placeholder="请输入外向指数(1-10)"
                       data-validate="required:请输入外向指数"/>
                <input type="text" class="input w50" name="judgement" placeholder="请输入判断指数(1-10)"
                       data-validate="required:请输入判断指数"/>
                <input type="text" class="input w50" name="abstraction" placeholder="请输入抽象指数(1-10)"
                       data-validate="required:请输入抽象指数"/>
                <input type="text" class="input w50" name="rationality" placeholder="请输入理性指数(1-10)"
                       data-validate="required:请输入理性指数"/>
                </div>
                <div class="tips"></div>
            </div>
        </div>

        <div class="form-group">
            <div class="label">
                <label></label>
            </div>
            <div class="field">
                <button class="button bg-main icon-check-square-o" type="submit" > 提交</button>
            </div>
        </div>
    </form>

</div>
<script type="text/javascript">
    const app = new Vue({
        el: '#soul_question_addDiv',
        data: {
            questionnaireId: "",
        },
        methods: {},
        created() {
            //获取地址栏中?id=xxx值
            this.questionnaireId = location.search.split("?")[1].split("=")[1];
            console.log(this.questionnaireId);
        }
    })
</script>
</body>
</html>